import { Dispatch as ReduxDispatch, Store as ReduxStore, Action } from 'redux';

export type counterStateType = {
  counter: number;
  resources?: string[],
  currentfile: {
    name?: string,
    value?: string
  },
  tty: {
    value: string
  }
};

export type GetState = () => counterStateType;

export type Dispatch = ReduxDispatch<{ type: string, data?: any }>;

export interface Actions extends Action<string> {
  data?: any
}


export type Store = ReduxStore<counterStateType, Action<string>>;